$OpenBSD: patch-tinyca2,v 1.5 2014/08/27 06:58:00 ajacoutot Exp $
--- tinyca2.orig	Tue Jul 25 22:12:00 2006
+++ tinyca2	Tue Aug 26 20:07:29 2014
@@ -18,7 +18,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 
-BEGIN { unshift(@INC, './lib'); # put here the location of the modules
+BEGIN { unshift(@INC, '${TRUEPREFIX}/lib/tinyca2'); # put here the location of the modules
 }
 
 use strict;
@@ -27,8 +27,8 @@ use Gtk2 '-init';
 
 use MIME::Base64;
 
+use Locale::gettext qw(gettext textdomain bindtextdomain);
 use POSIX;
-use Locale::gettext;
 
 use OpenSSL;
 use CA;
@@ -46,7 +46,7 @@ use KEY;
 use TCONFIG;
 
 setlocale(LC_MESSAGES, "");
-bindtextdomain("tinyca2", "./locale/");
+bindtextdomain("tinyca2", "${TRUEPREFIX}/share/tinyca2/locale/");
 textdomain("tinyca2");
 
 # https://bugs.gentoo.org/show_bug.cgi?id=78576
@@ -56,7 +56,7 @@ my $init = {};
 
 # location of openssl
 $init->{'opensslbin'} = "/usr/bin/openssl";
-$init->{'zipbin'} = "/usr/bin/zip";
+$init->{'zipbin'} = "${LOCALBASE}/bin/zip";
 $init->{'tarbin'} = "/bin/tar";
 
 if(not -x $init->{'opensslbin'}) {
@@ -76,7 +76,7 @@ if(not -x $init->{'tarbin'}) {
 }
 
 # directory with the templates
-$init->{'templatedir'} = "./templates";
+$init->{'templatedir'} = "${TRUEPREFIX}/share/tinyca2/templates";
 
 if(not -d $init->{'templatedir'}) {
    print gettext("Can't find templatedir.\n");
